/*
 * Created on May 19, 2005
 *
 * Copyright 2005 Stottler Henke Associates, Inc.
 */

package com.stottlerhenke.simbionic.util;

/**
 * Contains a name and an object.
 *
 */
public class Pair 
{
	/**
	 *  Name of the pair
	 */
	private String _name;
	
	/**
	 *  Object of the pair
	 */
	private Object _object;
	
	/**
	 * Constructor that creates a new, emtpy Pair.
	 */
	public Pair()
	{
	}
	
	/**
	 * Constructor.
	 * @param name
	 * @param object
	 */
	public Pair(String name, Object object)
	{
		_name = name;
		_object = object;
	}
	
	/**
	 * Sets the name of the pair
	 * @param name
	 */
	public void setName(String name)
	{
		_name = name;
	}
	
	/**
	 * Sets the object of the pair
	 * @param object
	 */
	public void setObject(Object object)
	{
		_object = object;
	}
	
	/**
	 * Gets the name of the pair
	 * @return
	 */
	public String getName()
	{
		return _name;
	}
	
	/**
	 * Gets the object of the pair
	 * @return
	 */
	public Object getObject()
	{
		return _object;
	}
}
